'''
新建“exerc1”Python文件完成作业：编写一个员工类(Employee),
 每次实例化该类后会自动记录+1，要求最后统计输出员工类总共实例化了多少对象。
'''
class Employee:
    count=0
    def __init__(self,name,money):
        self.name=name
        self.money=money
        Employee.count+=1



e=Employee('6-302:1',99999)
e=Employee('6-302:2',99999)
e=Employee('6-302:3',99999)
e=Employee('6-302:4',99999)
e=Employee('6-302:5',99999)
print('一共实例化了',e.count,'个对象')